]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Simplify if statement
authorFederico Mena Quintero <federico@gnome.org>
Thu, 21 Nov 2019 23:02:37 +0000 (17:02 -0600)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 29 Nov 2019 17:50:03 +0000 (17:50 +0000)
And make the end of st_theme_node_lookup_length() consistent with
st_theme_node_lookup_color() and st_theme_node_lookup_shadow().

Part of https://gitlab.gnome.org/GNOME/gnome-shell/issues/1934

src/st/st-theme-node.c

index 0f5bb32839bfa08fadb7363a620c88b66fa76917..5dc7bc5b690086010efc2286a4027c7c02024e1b 100644 (file)
@@ -1193,11 +1193,10 @@ st_theme_node_lookup_length (StThemeNode *node,
   else if (result == VALUE_INHERIT)
     inherit = TRUE;
 
-  if (inherit && node->parent_node &&
-      st_theme_node_lookup_length (node->parent_node, property_name, inherit, length))
-    return TRUE;
-  else
-    return FALSE;
+  if (inherit && node->parent_node)
+    return st_theme_node_lookup_length (node->parent_node, property_name, inherit, length);
+
+  return FALSE;
 }
 
 /**